package com.ruoyi.cms.merit.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 功德统计对象 merit
 *
 * 这里假设只有一条记录，存储总功德数
 *
 * @author ning
 * @date 2025-08-10
 */
public class Merit extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * ID，唯一标识（通常写死1）
     */
    private Long id;

    /**
     * 当前累计功德数
     */
    @Excel(name = "功德数")
    private Long count;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public Long getCount() {
        return count;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("count", getCount())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
